package com.mf.springboot.backend.commonModule.bean;

import com.mf.springboot.backend.commonModule.common.Constants;

/**
 * Created by zhang on 2017/9/14.
 */
public class PageBean extends BaseBean{

    private Integer page = 1;
    private Integer pageSize = 10;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        if(pageSize==null){
            pageSize = Constants.DEFAULT_PAGE_SIZE;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
